package com.kbt.commont;


import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;

public class Constants {

    /**
     * 根目录 *
     */
    public static String rootPath = "";
    public static int WhetherSubmit = 0;
    /**
     * 缓存路径 *
     */
    public static String imgLoaderPath = "imageloader/Cache";
    public static String imgPath = "";
    public static String dbPath = "";
    public static String bugPath = "";
    //记住当前页的赞的数量
    public static int current = 0;

    /**
     * 数据格式 *
     */
    public static String CodeType = "utf-8";
    public static String ServletFailCode = "0";
    public static String ServletSuccessCode = "1";

    /**
     * 网络请求 *
     */

    public static final String NetError = "网络请求出错,请重试";
    public static final String ImageNetError = "图片上传失败,请重试";



    /**
     * 一次请求数据条数 *
     */
    public static int CurrentPage = 20;

//    public static final String UpdateAPPURL = "http://shenghuo.glodon.com/software/restaurantapp.apk";
    public static final String UpdateAPPURL = "http://m.kua-jie.com/rest/api/v1.0/app_download";


    public static class ServiceInterFace {
//        public static final String ServerURL = "http://192.168.1.142:8081/";
//        public static final String ServerURL = "http://192.168.1.121:8081/";
//        public static final String ServerURL = "http://192.168.1.139:8081/";
//        public static final String ServerURL = "http://192.168.1.134/";
        public static final String ServerURL = "http://m.kua-jie.com/";
        //商品分类
        public static final String shopFenLeiURL = ServerURL+"rest/api/app/v1.0/app_fl_goods?goods_fl=";
        //首页轮转图片
        public static final String zuanZhanURL = ServerURL+"rest/api/app/v1.0/store/active?methodType=queryLbActive";
        //图片显示路径
        public static final String imageURL = ServerURL+"rest/api/v1.0/file?groupId=";
        //热销商品路径
        public static final String sellingURL = ServerURL+"rest/api/app/v1.0/app_rx_goods";
        //特卖商品
        public static final String teMaiURL = ServerURL+"rest/api/app/v1.0/store/active?methodType=queryTmActive";
        //开抢商品
        public static final String kaiQiangURL = ServerURL+"rest/api/app/v1.0/store/active?methodType=queryKqActive";
        //商品详情
        public static final String shopInfoURL = ServerURL+"rest/api/app/v1.0/app_one_goods?goods_id=";
        //加入购物车
        public static final String joinShopCarURL = ServerURL+"rest/api/app/v1.0/car";
        //查询购物车
        public static final String selectShopCarURL = ServerURL+"rest/api/app/v1.0/car?user_mobile=";
        //增加商品数量
        public static final String addOrJianShopCarURL = ServerURL+"rest/api/app/v1.0/car";
        //删除购物车
        public static final String deleteShopCarURL = ServerURL+"rest/api/app/v1.0/car";
        //查询购物车商品数量
        public static final String selectShopCarZhongLeiURL = ServerURL+"rest/api/app/v1.0/car?user_mobile=";
        //查询单件商品的数量
        public static final String selectShopNumberURL = ServerURL+"rest/api/app/v1.0/car?methodType=queryGoodCount&user_mobile=";
        //增加收货地址
        public static final String addAddressURL = ServerURL+"rest/api/app/v1.0/address";
        //查询收货地址列表
        public static final String selectAddressURL = ServerURL+"rest/api/app/v1.0/address?methodType=queryAddressList&create_user_mobile=";
        //删除收货地址
        public static final String deleteAddressURL = ServerURL+"rest/api/app/v1.0/address";
        //设置默认收货地址
        public static final String setDefaultAddressURL = ServerURL+"rest/api/app/v1.0/address";
        //查询默认收货地址
        public static final String selectDefaultAddressURL = ServerURL+"rest/api/app/v1.0/address?methodType=queryDefaultAddressInfo&create_user_mobile=";
        //获取积分
        public static final String selectJiFenURL = ServerURL+"rest/api/app/v1.0/point?methodType=queryPointInfo&user_mobile=";
        //增加订单
        public static final String addOrderURL = ServerURL+"rest/api/app/v1.0/order";
        //购物车选中
        public static final String shopCarSelectedURL = ServerURL+"rest/api/app/v1.0/car";
        //获取验证码
        public static final String getCodeURL = ServerURL+"rest/api/app/v1.1/user?methodType=getCode&user_mobile=";
        //注册
        public static final String registerURL = ServerURL+"rest/api/app/v1.1/user?methodType=addUser";
        //登录
        public static final String loginURL = ServerURL+"rest/api/app/v1.1/user?methodType=doLogin";
        //忘记密码
        public static final String forgotPasswordURL = ServerURL+"rest/api/app/v1.1/user?methodType=resetPass";
        //订单
        public static final String orderURL = ServerURL+"rest/api/app/v1.0/order?create_user_mobile=";
        //付款成功
        public static final String paySuccessURL = ServerURL+"rest/api/app/v1.0/order";
        //取消订单
        public static final String canCelOrderURL = ServerURL+"rest/api/app/v1.0/order";
        //催促发货
        public static final String reqSendURL = ServerURL+"rest/api/app/v1.0/order";
        //确认收货
        public static final String firmURL = ServerURL+"rest/api/app/v1.0/order";
        //上传图片
        public static final String upLoadURL=ServerURL+"rest/api/v1.0/file";
        //保存售后信息
        public static final String saveShouHouURL=ServerURL+"rest/api/app/v1.0/order";
        //评价信息保存
        public static final String judgeURL=ServerURL+"rest/api/app/v1.0/order";
        //查询快递
        public static final String kuaiDiURL=ServerURL+"rest/api/v1.0/kd";
        //保存退后物流信息
        public static final String saveWuliuURL=ServerURL+"rest/api/app/v1.0/order";
        //保存反馈意见
        public static final String saveYJURL=ServerURL+"rest/api/app/v1.0/advise";
        //修改支付方式
        public static final String updatePayTypeURL = ServerURL+"rest/api/app/v1.0/order";
        //查询活动商品
        public static final String selectActiveURL = ServerURL+"rest/api/app/v1.0/store/active?methodType=queryActiveGoods";
        //首页分类图标
        public static final String selectFenleiImageURL = ServerURL+"rest/api/app/v1.0/fl_query";
        //查询库存
        public static final String selectKunCunURL = ServerURL+"rest/api/v1.0/store/goods/storeCount?methodType=queryStoreCount&goods_ids=";
        //详情字典
        public static final String dicURL = ServerURL+"rest/api/v1.0/dict?dict_type=goods_from";
        //是否更新
        public static final String selectVersionUrl="http://m.kua-jie.com/rest/api/v1.0/app_download?methodType=queryUpdate";
        //查询新闻
        public static final String selectNewsUrl=ServerURL+"rest/api/app/v1.0/store/yx/news?methodType=queryNewsList";
        //提现绑定（实名认证）
        public static final String shiMingUrl=ServerURL+"rest/api/app/v1.1/user?methodType=addCashAccount";
        //判断账号是否绑定
        public static final String isCheckBangDingUrl=ServerURL+"rest/api/app/v1.1/user?methodType=getPayInfo&user_mobile=";

    }

    public static class RequestTag {
        //商品分类
        public static final int shopFenLeiTag = 1;
        //首页轮转图片
        public static final int zuanZhanTag = 2;
        //热销商品
        public static final int sellingTag = 3;
        //特卖商品
        public static final int teMaiTag = 4;
        //开抢商品
        public static final int kaiQiangTag = 5;
        //商品详情
        public static final int shopInfoTag = 6;
        //加入购物车
        public static final int joinShopCarTag =7;
        //查询购物车
        public static final int selectShopCarTag =8;
        //增加商品数量
        public static final int addOrJianShopCarTag=9;
        //删除购物车
        public static final int deleteShopCarTag =10;
        //查询购物车商品数量
        public static final int selectShopCarZhongLeiTag =11;
        //查询单件商品的数量
        public static final int selectShopNumberTag =12;
        //增加收货地址
        public static final int addAddressTag =13;
        //查询收货地址列表
        public static final int selectAddressTag =14;
        //删除收货地址
        public static final int deleteAddressTag =15;
        //设置默认收货地址
        public static final int setDefaultAddressTag =16;
        //设置默认收货地址2
        public static final int setDefaultAddress2Tag =17;
        //获取积分
        public static final int selectJiFenTag =18;
        //查询默认收货地址
        public static final int selectDefaultAddressTag =19;
        //增加订单
        public static final int addOrderTag =20;
        //购物车选中
        public static final int shopCarSelectedTag =21;
        //获取验证码
        public static final int getCodeTag =22;
        //注册
        public static final int registerTag =23;
        //登录
        public static final int loginTag =23;
        //忘记密码
        public static final int forgotPasswordTag =24;
        //未付款订单
        public static final int noMoneyOrderTag =25;
        //全部订单
        public static final int allOrderTag =26;
        //待发货
        public static final int noFaHuoTag =27;
        //待收货
        public static final int noShouHuoTag =28;
        //已完成
        public static final int overOrderTag =29;
        //售后订单
        public static final int shouHouOrderTag =30;
        //付款成功
        public static final int paySuccessTag =31;
        //取消订单
        public static final int canCelOrderTag =32;
        //催促发货
        public static final int reqSendTag =33;
        //确认收货
        public static final int firmTag =34;
        ///保存售后信息
        public static final int saveShouHouTag =35;
        //评价信息
        public static final int judgeTag =36;
        //快递
        public static final int kuaiDiTag =37;
        //保存退后物流信息
        public static final int saveWuLiuTag =38;
        //保存反馈意见
        public static final int saveYJag =39;
        //修改支付方式
        public static final int updatePayTypeTag =40;
        //查询活动商品
        public static final int selectActiveTag =41;
        //首页分类图标
        public static final int selectFenLeiImageTag =42;
        //库存
        public static final int selectKunCunTag =43;
        //查询最新购物车
        public static final int selectNewShopCarTag =44;
        //详情字典
        public static final int dicTag = 45;
        //是否更新
        public static final int selectVersionTag = 46;
        //查询新闻
        public static final int selectNewsTag=47;
        //实名认证
        public static final int shiMingTag=48;
        //判断账号是否绑定
        public static final int isCheckBangDingTag=49;
    }




}
